<%@page import="com.alibaba.fastjson.JSONObject"%>
<%@page import="com.dingpeikeji.quickdeer.modules.base.web.FSysController"%>
<%@page import="com.dingpeikeji.quickdeer.core.common.utils.CookieUtils"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/constrant.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="霞客约车网，霞客，约车,互联网巴士，巴士,xiake,xiakeyueche, bus，包车，用车，租车，大巴，直通车，车票，自助游，跟团游,接送机">
<meta name="description" content="霞客约车网是一款互联网+交通出行平台，联合专业客运企业提供各类包车、旅行车票及个性化的定制包车产品，产品包括日租包车、旅游包车、接送机/火车、自助游车票、跟团游巴士、机场直通车、定制包车等，致力于为用户提供更安全、更便捷、更集约的旅行用车服务。">
<link href="${ctxStatic }/index/css/header.css" rel="stylesheet">
<script src="${ctxStatic }/jquery/jquery-1.8.3.min.js"></script>
<script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript" src="${ctxStatic }/cityselector/cityselect.js"></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=kOQ8j9rd2ATw2R54boLMFUalu3gGNGDO&s=1"></script>
<script type="text/javascript">
$(function() {
	showCityInfo();
	// 初始化站点选择框
	$('.funcMenu').click(function() {
		var url = $(this).attr('data-url');
		if (url != '#') {
			window.location.href = $(this).attr('data-url');
		}
	});
})
function showCityInfo() {
		var myCity = new BMap.LocalCity();
		myCity.get(myFun);
		//定位ip
		var cityinfo = '';
		var map = new BMap.Map("allmap");
		function myFun(result) {
			var cityName = result.name;
			cityinfo = cityName;
			$("#cityinfo").html(cityinfo);
			setCity(cityinfo);
		}
		function setCity(obj){
			$.post('${ctxFront}/json/getSiteidByName', {
				name : obj
			}, function(data) {
				// 定位城市选中
				var $autocity = $('input[data-autocity="yes"]');
				$autocity.val(cityinfo);
				$autocity.next('input').val(data.siteid);
			});
		}
	}
</script>
<title>霞客约车—专业的旅行用车平台</title>
</head>
<body><div id="allmap"></div>
<div class="dg_header">
    <div class="dg_header_1">
        <a href="${ctxFront }/index">
            <img class="img_1" src="${ctxStatic }/index/images/logo.png">
        </a>
    <span class="dg_coor">当前城市：&nbsp;<img class="img-3" src="${ctxStatic }/index/images/coordinate.png">
    &nbsp;&nbsp;<span id="cityinfo">正在定位...</span></span>
    <img class="img_4" src="${ctxStatic }/index/images/phone.png">
    </div>
    <div class="dg_nav">
        <ul class="dg_nav_1">
            <li><a data-url="${ctxFront }/index" class="funcMenu index" href="javascript:void(0)">首页</a></li>
            <li><a href="javascript:void(0)" >旅游包车</a></li>
            <li><a href="javascript:void(0)" data-url="${ctxFront }/indexDayRent" class="funcMenu indexDayRent">按天包车</a></li>
            <li><a href="javascript:void(0)" data-url="${ctxFront }/indexAirRent" class="funcMenu indexAirRent">接送机</a></li>
            <li><a href="javascript:void(0)" data-url="${ctxFront }/rentproduct/demands/form" class="funcMenu indexDemands">定制包车</a></li>
            
             <c:if test="${empty sessionScope.front_user }">
            <li id="Reg" class="nav_right">
            <img src="${ctxStatic }/index/images/load.png">&nbsp;
            <a href="${pageContext.request.contextPath }/login.jsp">登录</a></li>
            <li id="Login" class="nav_right_1">
            <img src="${ctxStatic }/index/images/register.png">&nbsp;
            <a href="${pageContext.request.contextPath }/register.jsp">注册</a></li>
             </c:if>
             <c:if test="${not empty sessionScope.front_user }">
            <li id="Reg" class="nav_right">
            <img src="${ctxStatic }/index/images/load.png">&nbsp;
            <a href="${ctxFront}/orders/orderList">${sessionScope.front_user.loginName}的账号</a></li>
            <li id="Login" class="nav_right_1">
            <img src="${ctxStatic }/index/images/register.png">&nbsp;
            <a href="${ctxFront }/logout">退出</a></li>
             </c:if>
        </ul>
    </div>
</div>
